from utils.json_out import print_json


def client_completions_create(client,message,tools):
    response = client.chat.completions.create(
        model="gpt-3.5-turbo",
        messages=message,
        tools=tools,
        tool_choice="auto",
        temperature=0  # 模型输出的随机性，0表示随机性最小
    )
    return response.choices[0].message

